<template>
  <div id="app">
    <h3>v-bind属性绑定：</h3>
    <hr>
    <img class="img" src="" :alt=alertInfo>
    <a :href=URL>跳转链接</a>
  </div>
  <input type="checkbox" :checked="isActive == 1 ? true : false">
  <div :v-text="agree"></div>
</template>
<script>
export default {
  data() {
    return {
      alertInfo: "this is a picture",
      URL: 'http://www.sina.com',
      isActive:0,
      agree:'不同意'
    }
  }
}
</script>